﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace System.Utility
{
    public class Loader
    {

        public static XmlDocument LoadXmlDocument(string path, bool isMergePath)
        {
            if (isMergePath)
                path = Path.GetFullPath(Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, path));
            XmlDocument doc = new XmlDocument();
            doc.Load(path);
            return doc;
        }


        public static XmlDocument LoadXmlDocument(string path)
        {
            return LoadXmlDocument(path, true);
        }
    }
}
